LearningStoreQuery.SetParameter Method

Sets the value for a parameter in a query.

Parent Type: LearningStoreQuery

Namespace: Microsoft.LearningComponents.Storage

Assembly: Microsoft.LearningComponents.Storage.dll

Syntax
C#

public void SetParameter (
string parameterName,
object value

)

Parameters

parameterName

Name of the parameter

value

Value of the parameter.

Exceptions
Exception type Condition
ArgumentNullException

parameterName is a null reference.

InvalidOperationException

Invalid value value.

Remarks

See the LearningStoreQuery documentation for more information about creating and executing queries.

value must contain a value that is valid based on the type of the parameter specified by parameterName:

value must not contain a LearningStoreItemIdentifier returned from LearningStoreJob.AddItem.